package com.credit.jumu.playcard.utils;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/10/17/017.
 */

public class JptAdapter extends FragmentStatePagerAdapter {
	private List<Fragment> list;

	public JptAdapter(FragmentManager fm, List<Fragment> list) {
		super(fm);
		this.list = list;
	}

	@Override
	public Fragment getItem(int position) {
		return list.get(position);
	}


	@Override
	public int getCount() {
		return list.size();
	}
}
